package com.pikaqiu.warehouse.domain.dto;

import com.pikaqiu.warehouse.domain.entity.Category;
import lombok.Data;

/**
 * @Author: Administrator
 * @Date: 2024/8/14
 */
@Data
public class CategoryDto {
    private Integer id;
    private String name;
    private Integer sorted;

    public CategoryDto(Category category) {
        this.id = category.getId();
        this.name = category.getName();
        this.sorted = category.getSorted();
    }
}
